import http from "@/api/http";

export function getInfoPage(query: object) {
    return http.get({
        url: "/content/info/page",
        params: query
    });
}

export function getInfo(infoId: number) {
    return http.get({
        url: "/content/info/" + infoId
    });
}

export function saveInfo(obj: object) {
    return http.post({
        url: "/content/info",
        data: obj
    });
}

export function updateInfo(obj: object) {
    return http.put({
        url: "/content/info",
        data: obj
    });
}

export function delInfo(infoId: any) {
    return http.delete({
        url: "/content/info/" + infoId
    });
}
